package es.bean;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

import java.math.BigDecimal;
import java.util.Date;

@Data
@IndexName("tender_summary")
public class TenderSum {

    @IndexId(type = IdType.UUID)
    private String id;

    @IndexField(fieldType = FieldType.KEYWORD)
    private Integer procurementUnitId;

    @IndexField(fieldType = FieldType.TEXT,  analyzer = "ik_smart")
    private String procurementUnit;

    @IndexField(fieldType = FieldType.TEXT)
    private String projectClassification;

    @IndexField(fieldType = FieldType.DATE, dateFormat = "yyyy-MM-dd")
    private String renderDate;

    @IndexField(fieldType = FieldType.FLOAT,fieldData = true)
    private BigDecimal sumMoney;

    @IndexField(fieldType = FieldType.INTEGER,fieldData = true)
    private Integer tenderSize;

    @IndexField(fieldType = FieldType.KEYWORD)
    private Integer cityId;

    @IndexField(fieldType = FieldType.DATE, dateFormat = "yyyy-MM-dd")
    private String lastRenderDate;

}
